this.BX=this.BX||{};this.BX.Vue3=this.BX.Vue3||{};(function(e,i,t){"use strict";let n=e=>e,s;class p{constructor(){this.popup=null}show(e,p={}){if(this.popup){this.popup.close()}let o={};let u;if(t.Type.isObject(p.value)){if(p.value.text){u=t.Text.encode(p.value.text)}else if(p.value.html){u=p.value.html}if(t.Type.isObject(p.value.popupOptions)){o=p.value.popupOptions}if(p.value.position==="top"){if(!t.Type.isObject(o.bindOptions)){o.bindOptions={}}o.bindOptions.position="top"}}else{u=p.value;if(t.Type.isUndefined(e.dataset.hintHtml)){u=t.Text.encode(u)}}o.bindElement=e;if(t.Type.isUndefined(o.id)){o.id="bx-vue-hint"}if(t.Type.isUndefined(o.darkMode)){o.darkMode=true}if(t.Type.isUndefined(o.content)){const e=t.Tag.render(s||(s=n`<span class='ui-hint-content'></span>`));e.innerHTML=u;o.content=e}if(t.Type.isUndefined(o.autoHide)){o.autoHide=true}if(!t.Type.isObject(o.bindOptions)){o.bindOptions={}}if(t.Type.isUndefined(o.bindOptions.position)){o.bindOptions.position="bottom"}o.cacheable=false;this.popup=new i.Popup(o);this.popup.show()}hide(){if(this.popup){this.popup.close()}}}const o=new p;
/**
	 * Hint Vue directive
	 *
	 * @package bitrix
	 * @subpackage ui
	 * @copyright 2001-2022 Bitrix
	 */const u={beforeMount(e,i){if(!i.value){return}t.Event.bind(e,"mouseenter",(()=>o.show(e,i)));t.Event.bind(e,"mouseleave",(()=>o.hide()))}};e.hint=u})(this.BX.Vue3.Directives=this.BX.Vue3.Directives||{},BX.Main,BX);
//# sourceMappingURL=hint.bundle.map.js